<?php

/**
 * CollectionComment form.
 *
 * @package    travide
 * @subpackage form
 * @author     Travide Project Group
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class CollectionCommentForm extends BaseCollectionCommentForm
{
  public function configure()
  {
      /**
       * set Labels and lhelp text etc for displayed fields
       * as well as specific validators for forms
       */
      $this->getWidget('author')->setLabel('Author');
      $this->getWidget('replyEmail')->setLabel('Email');
      $this->setValidator('replyEmail', new sfValidatorEmail());
      $this->getWidget('commentText')->setLabel('Comment');
      /**
       * Remove the fields we dont' want the user to see from the comment form
       */
      unset($this['created_at'],$this['updated_at'],$this['collectionUin']);
  }
}
